package com.common.baseException;

/**
 * @ClassName DescribableEnum
 * @Description 异常状态枚举类
 * @Author 吃麻椒的花酱
 * @Date 2022/2/9 21:08
 * @Version 1.0
 */
public enum ExceptionEnum {
    NOT_FOUND(404,"资源未找到"),
    EXCEPTION(1001, "服务器异常"),
    TIME_OUTE(1002,"请求超时"),
    FEIGN_ERROR(1004,"远程调用异常"),
    UPLOAD_ERROR(1003,"文件上传错误"),
    SHARING_ERROR(2001,"分库分表策略异常");
    private final Integer code;
    private final String msg;

    private ExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }


}
